package user;

import book.BookList;
import ioperation.IOperations;

public abstract class User {
    //用户的操作
    protected IOperations[] iOperations;

    protected String name;
    public abstract IOperations getiOperations(int c);

    public User(String name) {
        this.name = name;
    }

    //初始菜单打印
    public abstract int menu();

    public void run(BookList bookList, int choice) {
        this.getiOperations(choice).work(bookList);
    }

}
